<lcnc-ncam>
  <feature src="mill/material.cfg" expanded="False" help="&lt;b&gt;Workpiece or Raw material used&lt;/b&gt;" short_id="21" old-selected="False" name="Workpiece" after="" order="['PARAM_SH', 'PARAM_H1', 'PARAM_L', 'PARAM_W', 'PARAM_D', 'PARAM_H2', 'PARAM_X', 'PARAM_ALX', 'PARAM_Y', 'PARAM_ALY', 'PARAM_Z', 'PARAM_ALZ', 'PARAM_H4', 'PARAM_CR', 'PARAM_WT', 'PARAM_CL', 'PARAM_H3', 'PARAM_ZCL', 'PARAM_RAP', 'PARAM_TH']" new-selected="False" hidden_count="0" path="0" call="&#10;(begin #sub_name)&#10;(workpiece definition author : Fernand Veilleux)&#10;#&lt;wp_width&gt;         = [#&lt;_units_width&gt; * #param_w]&#10;#&lt;wp_length&gt;        = [#&lt;_units_width&gt; * #param_l]&#10;#&lt;wp_depth&gt;         = [#&lt;_units_width&gt; * #param_d]&#10;#&lt;wp_wall&gt;          = [#&lt;_units_width&gt; * #param_wt]&#10;#&lt;wp_corner_radius&gt; = [#&lt;_units_width&gt; * #param_cr]&#10;#&lt;wp_inside_width&gt;  = [#&lt;wp_width&gt; - #&lt;wp_wall&gt; * 2]&#10;#&lt;wp_inside_length&gt; = [#&lt;wp_length&gt; - #&lt;wp_wall&gt; * 2]&#10;&#10;#&lt;wp_x&gt; = #param_x&#10;#&lt;wp_y&gt; = #param_y&#10;&#10;o&lt;select&gt; CALL [31] [#param_alx] [#param_x] [#param_x - #&lt;wp_length&gt; / 2] [#param_x - #&lt;wp_length&gt;]&#10;#&lt;wp_left&gt;  = #31&#10;#&lt;wp_right&gt; = [#&lt;wp_left&gt; + #&lt;wp_length&gt;]&#10;&#10;o&lt;select&gt; CALL [31] [#param_aly] [#param_y - #&lt;wp_width&gt;] [#param_y - #&lt;wp_width&gt; / 2] [#param_y]&#10;#&lt;wp_front&gt; = #31&#10;#&lt;wp_rear&gt;  = [#&lt;wp_front&gt; + #&lt;wp_width&gt;]&#10;&#10;o&lt;select&gt; CALL [31] [#param_alz] [#param_z] [#param_z + #&lt;wp_depth&gt; / 2] [#param_z + #&lt;wp_depth&gt;]&#10;#&lt;surface&gt;  = #31&#10;&#10;#&lt;_z_clear&gt;       = #param_zcl&#10;#&lt;_rapid_z&gt;       = [#&lt;surface&gt; + #&lt;_z_clear&gt; + #param_rap]&#10;&#10;#&lt;bottom&gt;         = [#&lt;surface&gt; - #&lt;wp_depth&gt;]&#10;#&lt;bottom_through&gt; = [#&lt;bottom&gt; + #param_th]&#10;&#10;/&#9;o&lt;#self_id_active&gt; if [#param_sh] (show enabled)&#10;/&#9;&#9;o&lt;stock&gt; CALL [#&lt;wp_left&gt;] [#&lt;wp_right&gt;] [#&lt;wp_front&gt;] [#&lt;wp_rear&gt;] [#&lt;surface&gt;] [#&lt;bottom&gt;] [#param_cl] [#&lt;wp_corner_radius&gt;] [#&lt;wp_wall&gt;]&#10;/&#9;&#9;G0 X#param_x Y#param_y Z#&lt;surface&gt;&#10;/&#9;o&lt;#self_id_active&gt; endif&#10;(end #sub_name)" definitions="" icon="stock.png" type="workpiece" id="workpiece_001" before="">
    <param name="Show workpiece" value="1" call="#param_sh" path="0:0" type="bool" icon="glasses.png"/>
    <param type="sub-header" call="#param_h1" name="Size" path="0:1"/>
    <param tool_tip="X axis" no_zero="1" name="Width (X)" metric_value="100" value="4" header="h1" call="#param_l" path="0:1:0" icon="width.png" type="float" minimum_value="0.0"/>
    <param tool_tip="Y axis" no_zero="1" name="Height (Y)" metric_value="50" value="2" header="h1" call="#param_w" path="0:1:1" icon="height.png" type="float" minimum_value="0.0"/>
    <param tool_tip="Z axis" no_zero="1" name="Depth (Z)" metric_value="25.0" value="1" header="h1" call="#param_d" path="0:1:2" icon="depth.png" type="float" minimum_value="0.0"/>
    <param type="sub-header" call="#param_h2" name="Coords" path="0:2"/>
    <param tool_tip="X0" name="X" metric_value="0.0" value="0.0" header="h2" call="#param_x" path="0:2:0" type="float" icon="x.png"/>
    <param tool_tip="Define X reference" name="X axis align" value="0" header="h2" call="#param_alx" path="0:2:1" type="combo" options="Left=0:Center=1:Right=2" icon="align-x.png"/>
    <param tool_tip="Y0" name="Y" metric_value="0.0" value="0.0" header="h2" call="#param_y" path="0:2:2" type="float" icon="y.png"/>
    <param tool_tip="Define Y reference" name="Y axis align" value="2" header="h2" call="#param_aly" path="0:2:3" type="combo" options="Top=0:Center=1:Bottom=2" icon="align-y.png"/>
    <param tool_tip="Surface" name="Z" metric_value="0.0" value="0.0" header="h2" call="#param_z" path="0:2:4" type="float" icon="z.png"/>
    <param tool_tip="Define Z reference" name="Z axis align" value="0" header="h2" call="#param_alz" path="0:2:5" type="combo" options="Top=0:Center=1:Bottom=2" icon="align-z.png"/>
    <param type="sub-header" call="#param_h4" name="Options" path="0:3"/>
    <param tool_tip="Define radius" name="Corner radius" metric_value="0.0" value="0.0" header="h4" call="#param_cr" path="0:3:0" minimum_value="0.0" type="float" icon="corner-radius.png"/>
    <param tool_tip="Define if hollow" name="Wall thickness" metric_value="0.0" value="0.0" header="h4" call="#param_wt" path="0:3:1" minimum_value="0.0" type="float" icon="wall-thickness.png"/>
    <param tool_tip="Define orientation of centerline" name="Centerline align" value="0" header="h4" call="#param_cl" path="0:3:2" type="combo" options="X axis=0:Y axis=1:Z axis=2" icon="cl-align.png"/>
    <param type="sub-header" call="#param_h3" name="Milling params" path="0:4"/>
    <param tool_tip="Above surface or cut start" no_zero="1" name="Z clear" metric_value="2.0" value="0.1" header="h3" call="#param_zcl" path="0:4:0" icon="safe-z.png" type="float" minimum_value="0.0"/>
    <param tool_tip="Above Z clear" no_zero="1" name="Rapid (Z)" metric_value="10.0" value="0.4" header="h3" call="#param_rap" path="0:4:1" icon="rapid.png" type="float" minimum_value="0.0"/>
    <param tool_tip="Past bottom" name="Clear through" metric_value="-1.25" maximum_value="0.0" value="-0.05" header="h3" call="#param_th" path="0:4:2" type="float" icon="through.png"/>
  </feature>
  <feature src="mill/sel-end-mill.cfg" expanded="False" help="&lt;b&gt;Change end mill and/or settings&lt;/b&gt;&amp;#10;Changes setting accordingly even if disabled" name="End Mill Change" old-selected="True" after="" order="['PARAM_ACT', 'PARAM_H1', 'PARAM_DNUM', 'PARAM_US', 'PARAM_DD', 'PARAM_H2', 'PARAM_TLC', 'PARAM_SPINDLE_DIR', 'PARAM_COOLING', 'PARAM_H4', 'PARAM_FEED', 'PARAM_V_FEED', 'PARAM_SPEED', 'PARAM_H6', 'PARAM_SO_N', 'PARAM_SO_M', 'PARAM_H5', 'PARAM_PEN', 'PARAM_STP', 'PARAM_PR']" new-selected="False" short_id="22" hidden_count="0" definitions="" call="&#10;(begin #sub_name)&#10;(end mill change params and changing code author : Fernand Veilleux)&#10;&#10;#&lt;_spindle_dir&gt;      =  #param_spindle_dir&#10;#&lt;_cooling_mode&gt;     =  #param_cooling&#10;&#10;#&lt;_feed_normal&gt;      =  #param_feed&#10;#&lt;_rpm_normal&gt;       =  #param_speed&#10;#&lt;_feed_vertical&gt;    =  #param_v_feed&#10;#&lt;_penetration_mode&gt; =  #param_pen&#10;#&lt;_depth_step&gt;       =  #param_stp&#10;#&lt;_ramp_down_ratio&gt;  = [#param_pr / 100]&#10;#&lt;_tool_usage&gt;       =  #param_us&#10;#&lt;_stepover_min&gt;     =  #param_so_m&#10;#&lt;_stepover_normal&gt;  = [#param_so_n / 100]&#10;#&lt;_tool_dynamic_dia&gt; =  #param_dd&#10;&#10;o&lt;#self_id_tlc&gt; if [[#param_tlc EQ 3] AND [#param_dnum GT 0]]&#10;&#9;M61 Q#param_dnum&#10;o&lt;#self_id_tlc&gt; endif&#10;&#10;o&lt;#self_id_act&gt; if [#param_act AND [#param_dnum NE #5400]]&#10;&#9;M9&#10;&#9;T#param_dnum M6&#10;o&lt;#self_id_act&gt; endif&#10;&#10;o&lt;#self_id_lc&gt; if [[#param_tlc EQ 1] OR [#param_tlc EQ 2]]&#10;&#9;G43 H#param_dnum&#10;o&lt;#self_id_lc&gt; endif&#10;&#10;o&lt;#self_id_01&gt; if [[#&lt;_spindle_dir&gt; GT 0] AND #&lt;_spindle_all_time&gt;]&#10;&#9;o&lt;set_feed_rate_and_speed&gt; CALL [1]&#10;o&lt;#self_id_01&gt; endif&#10;(end #sub_name)" path="1" icon="tool-01.png" type="emill_chng" id="emill_chng_001" before="">
    <param tool_tip="Params will be set even if disabled" name="Active" value="1" call="#param_act" path="1:0" type="bool" icon="enable.png"/>
    <param type="sub-header" call="#param_h1" name="Select end mill" path="1:1"/>
    <param tool_tip="Select from tool table" name="Tool number" value="0" header="h1" call="#param_dnum" path="1:1:0" type="tool" icon="tool.png"/>
    <param tool_tip="Select usage for this tool" name="Usage" value="0" header="h1" call="#param_us" path="1:1:1" type="combo" options="Roughing and finishing=0:Roughing=1:Finishing=2" icon="tool-usage.png"/>
    <param tool_tip="Only for dynamic compensation, 0.0 to use diameter from table" name="Dynamic diameter" metric_value="0.0" value="0.0" header="h1" call="#param_dd" path="1:1:2" minimum_value="0.0" type="float" icon="tool-d.png"/>
    <param type="sub-header" call="#param_h2" name="Action" path="1:2"/>
    <param tool_tip="Use G43 and probe if setup" name="Use length comp" value="3" header="h2" call="#param_tlc" path="1:2:0" type="combo" options="No=0:Already mounted and touched=3:From tool table=1:Table and probe=2" icon="comp-l.png"/>
    <param tool_tip="Select drill rotation" name="Start spindle" value="3" header="h2" call="#param_spindle_dir" path="1:2:1" type="combo" options="No=0:Clockwise=3:Counter-clockwise=4" icon="spindle-start.png"/>
    <param tool_tip="Use flood, mist or none" name="Use cooling" value="8" header="h2" call="#param_cooling" path="1:2:2" type="combo" options="None=9:Flood=8:Mist=7" icon="snowflake.png"/>
    <param type="sub-header" call="#param_h4" name="Feed and speed" path="1:3"/>
    <param tool_tip="Feed at 100% engagement" no_zero="1" name="Feed" metric_value="250" value="9.84251968504" header="h4" call="#param_feed" path="1:3:0" minimum_value="0.0" type="float" icon="tool-feed.png"/>
    <param tool_tip="Plunge or drill feed" no_zero="1" name="Vertical" metric_value="200" value="7.87401574803" header="h4" call="#param_v_feed" path="1:3:1" icon="tool-vertical-feed.png" type="float" minimum_value="0.0"/>
    <param tool_tip="Set spindle speed" name="Spindle speed" value="1000" header="h4" call="#param_speed" path="1:3:2" icon="tool-spindle.png" type="int" minimum_value="100"/>
    <param tool_tip="Step over for pocketing and finishing" type="sub-header" call="#param_h6" name="Milling step over" path="1:4"/>
    <param tool_tip="Maximum for pocketing or surface finishing" suffix="%" icon="rect-pocket.png" maximum_value="100" value="60" header="h6" call="#param_so_n" path="1:4:0" minimum_value="10" type="int" name="Expanding engagement"/>
    <param digits="3" name="Minimum" metric_value="0.4" value="0.0157480314961" header="h6" call="#param_so_m" path="1:4:1" icon="rect-pocket.png" type="float" minimum_value="0.010"/>
    <param type="sub-header" call="#param_h5" name="Penetration" path="1:5"/>
    <param tool_tip="How Z position is attained" name="Mode" value="0" header="h5" call="#param_pen" path="1:5:0" type="combo" options="Ramp down=0:Plunge=1" icon="pen-mode.png"/>
    <param tool_tip="Step down on each pass" name="Step down" metric_value="-3" maximum_value="0.0" value="-0.11811023622" header="h5" call="#param_stp" path="1:5:1" type="float" icon="tool-depth.png"/>
    <param tool_tip="Z versus XY move" suffix="%" icon="ramp-down-rate.png" maximum_value="100" value="25" header="h5" call="#param_pr" path="1:5:2" minimum_value="0" type="int" name="Ramp down rate"/>
  </feature>
</lcnc-ncam>
